import { Injectable } from '@angular/core';
import { CommHttpService } from '../../../core/comm.http.service';
import { HttpService } from '../../../core/http.service';
import { SERVERS_NAME } from '../../../config/config';

@Injectable()
export class BigscreenManageService extends CommHttpService {
  protected preUrl = `${SERVERS_NAME.VISUALIZATION_SERVER}ksh/showMaterial/`;

  constructor(protected http: HttpService) {
    super(http);
  }

  /**
   * 删除
   */
  deletes(arr) {
    return this.http.post(arr, `${this.preUrl}` + 'delete');
  }

  /**
   * 启用
   */
  enables(arr) {
    return this.http.post(arr, `${this.preUrl}` + 'enable');
  }

  /**
   * 撤销
   */
  disables(arr) {
    return this.http.post(arr, `${this.preUrl}` + 'disable');
  }
}
